package com.per.mybootall.pojo;

import lombok.Data;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.Objects;

@Data
@Component
public class up {

        Date username;
        Integer password;
        Integer photomessahes;
        Integer uuid;


        /**
         * 重写equals方法，注意，重写equals还必须要重写hashcode方法
         * */
    @Override
    public boolean equals(Object o) {
        if (o == null) {
            return false;
        }
        if (o instanceof up) {
            up inItem = (up) o;
            return username==((up) o).username;
        }
        return false;
    }

}
